import { createRouter, createWebHashHistory } from 'vue-router';
import DramaList from '../views/DramaList.vue';
// import DramaDetails from '../views/DramaDetails.vue'; // 引入短剧详情组件
import SubtitleManagement from '../views/SubtitleManagement.vue'; // 引入字幕管理组件

const routes = [
  {
    path: '/',
    name: 'DramaList',
    component: DramaList
  },
  /* {
    path: '/drama/:id', // 添加短剧详情路由，使用动态参数 id
    name: 'DramaDetails',
    component: DramaDetails
  }, */
  {
    path: '/subtitle-management',
    name: 'SubtitleManagement',
    component: SubtitleManagement
  }
];

const router = createRouter({
  history: createWebHashHistory(),
  routes
});

export default router;
